Skip to content

Don't fail for undefined navigator#612

Open
ronaldkroon wants to merge 1 commit intomicrosoft:masterfrom
ronaldkroon:prevent-exception-for-undefined-navigator
Open

Don't fail for undefined navigator#612
ronaldkroon wants to merge 1 commit intomicrosoft:masterfrom
ronaldkroon:prevent-exception-for-undefined-navigator

Conversation

@ronaldkroon
Copy link

The constructor of WebApi should not throw an exception trying to read window.navigator.userAgent when window.navigator is undefined.

The constructor of `WebApi` should not throw an exception trying to read `window.navigator.userAgent` when `window.navigator` is `undefined`.
@ronaldkroon ronaldkroon requested review from a team as code owners October 9, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants